import Vue from "vue"
import VueRouter from "vue-router"

Vue.use(VueRouter)

export default new VueRouter({
    mode: "hash",
    routes: [{
        path: "/NewCar",
        name: "NewCar",
        component: () => import("../views/NewCar.vue"),
        children: [{
                path: "XinNengYuan",
                name: "XinNengYuan",
                component: () => import("../views/newcar/XinNengYuan.vue"),
                meta: {
                    act: "act"
                }
            }, {
                path: "XinChe",
                name: "XinChe",
                component: () => import("../views/newcar/XinChe.vue"),
                meta: {
                    act: "act"
                }
            },
            {
                path: "HaoHuaPinPai",
                name: "HaoHuaPinPai",
                component: () => import("../views/newcar/HaoHuaPinPai.vue"),
                meta: {
                    act: "act"
                }
            }
        ]

    }, {
        path: "/My",
        name: "My",
        component: () => import("../views/My.vue")
    }]
})